//
//  CourseListCell.h
//  JPWords
//
//  Created by 梁淑婷 on 2024/6/23.
//

#import <UIKit/UIKit.h>
#import "JPCustomCell.h"
#import "CourseListModel.h"

NS_ASSUME_NONNULL_BEGIN

@class CourseListCell;

@protocol CourseListCellDelegate <NSObject>

@optional

- (void)resetTap:(CourseListCell*)cell;
- (void)beginTap:(CourseListCell*)cell;


@end

@interface CourseListCell : JPCustomCell

@property (nonatomic, weak) id<CourseListCellDelegate>delegate;
@property(nonatomic,assign)NSInteger section;
@property(nonatomic,strong)CourseListModel *model;
@property(nonatomic,assign)CGFloat currentAvailableWidth;

-(void)refreshWidth;
-(void)refreshWithIsSwipe:(BOOL)isSwipe andDynamic:(BOOL)isDynamic;


@end

NS_ASSUME_NONNULL_END
